package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"module-name/api/internal/config"
	"module-name/modulerpc/modulerpcclient"
)

type ServiceContext struct {
	Config    config.Config
	ModuleRpc modulerpcclient.Modulerpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:    c,
		ModuleRpc: modulerpcclient.NewModulerpc(zrpc.MustNewClient(c.ModuleRpc)),
	}
}
